package cn.tedu.store.mapper;

import cn.tedu.store.entity.Supplies;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
@DS("master")
public interface SuppliesMapper {


    List<Supplies> get(@Param("supplies") String supplies);

    void addList(@Param("supplies")Supplies supplies);

    Supplies getOneSupplies(@Param("itemCode")String itemCode,@Param("repairApplyId") String repairApplyId);

    void updateOneByCode(@Param("repairApplyId")String repairApplyId,@Param("itemCode") String itemCode,@Param("countPrice") int countPrice, @Param("nuber") int nuber);

    List<Supplies> relevancyOrdersList(@Param("repairApplyId")String repairApplyId);

    void deleteOne(@Param("repairApplyId")String repairApplyId, @Param("itemCode")String itemCode);
}
